<?xml version="1.0" encoding="UTF-8"?>
<ui:composition
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
>

	<p:link includeViewParams="true" rendered="#{entityList.dir eq 'asc' || empty entityList.dir}">
		<f:param name="orderBy" value="#{propertyPath}"></f:param>
		<f:param name="dir" value="desc"></f:param>
		
		<h:outputText value="#{propertyLabel}" />
		<c:if test="#{not empty entityList.dir and entityList.orderBy == propertyPath}">		
			<i class="pi pi-sort-alpha-up" title="升序"></i>
		</c:if>
	</p:link>
	<p:link includeViewParams="true" rendered="#{entityList.dir eq 'desc'}">
		<f:param name="orderBy" value="#{propertyPath}"></f:param>
		<f:param name="dir" value="asc"></f:param>
		
		<h:outputText value="#{propertyLabel}" />
		<c:if test="#{not empty entityList.dir and entityList.orderBy == propertyPath}">
			<i class="pi pi-sort-alpha-down" title="降序"></i>
		</c:if>
	</p:link>

</ui:composition>